package com.zlzxm.shoesmarket.view.window.wheelpick;

import com.contrarywind.adapter.WheelAdapter;

import java.util.List;

/**
 * Created by zlz
 * on  4/9/21
 */
public class ADOption implements WheelAdapter<EntityOption> {

    private List<EntityOption> list;

    public ADOption(List<EntityOption> list) {
        this.list = list;
    }

    @Override
    public int getItemsCount() {
        return list.size();
    }

    @Override
    public EntityOption getItem(int index) {
        return list.get(index);
    }

    @Override
    public int indexOf(EntityOption o) {
        return 0;
    }
}
